class Person:
    def __init__(self, name:str, sex:str = '男', hobby:str = '抽烟，喝酒，烫头') -> None:# 初始化函数,返回值为None
        self.name = name # self指向当前类的对象
        self.sex = sex
        self.hobby = hobby
    def eat(self):
        print("干饭了，干饭了")
    def study(self,info:str):
        print(f"努力学习:{info}")
    def show_me(self)->str:
        return f"我叫:{self.name} 我的爱好是:{self.hobby}"
p1 = Person("吕小布")
print(p1.hobby)
p1.eat()
p1.study("Python")
print(p1.show_me())